package com.milk.system.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.milk.system.enums.MerchantStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商家信息表 分页VO
 *
 * @author milk
 * @since 2024-05-02
 */
@Getter
@Setter
@Schema(description = "商家信息表分页视图对象")
public class MerchantsPageVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "商家唯一标识")
    private Long id;

    @Schema(description = "商家名称")
    private String merchantName;

    @Schema(description = "联系人姓名")
    private String contactName;

    @Schema(description = "联系人邮箱")
    private String contactEmail;

    @Schema(description = "联系人电话")
    private String contactPhone;

    @Schema(description = "商家地址")
    private String address;

    @Schema(description = "注册日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime registrationDate;

    @Schema(description = "商家状态 如'活跃'、'禁用'等")
    private MerchantStatusEnum status;

//    @Schema(description = "创建时间")
//
//    private LocalDateTime createdTime;
//
//    @Schema(description = "修改时间")
//
//    private LocalDateTime updatedTime;
//
//    @Schema(description = "逻辑删除标识（0：未删除，1：已删除）")
//
//    private Boolean deleted;
}
